package com.practice2.exercise;

import com.ynny.bean.Student;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext user=new ClassPathXmlApplicationContext("user.xml");
        User user1 = (User) user.getBean("user1");
        System.out.println(user1);
        user1.show();
        User user2 = (User) user.getBean("user2");
        System.out.println(user2);
        user2.show();
    }

}
